// 入口文件
import Vue from 'vue'
import app from './App.vue'

//导入路由的包
import VueRouter from 'vue-router'
//安装路由模块
Vue.use(VueRouter)
//导入router.js模块
import router from './router.js'

//导入vue-resource
import VueResource from 'vue-resource'
//安装vue-resource
Vue.use(VueResource)

//按需导入Mint-UI中的组件
import {Header,Swipe, SwipeItem} from 'mint-ui'

//导入MUI的样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

Vue.component(Header.name,Header)
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);



var vm = new Vue({
    el:'#app',
    render:c=>c(app) ,
    router  //挂载路由对象到vm实例上
})